package kr.co.graviti.service.daumeditor;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@SuppressWarnings("unchecked")
public class DaumeditorServiceImp implements DaumeditorService {
	
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	@Override
	public void insert_editorFile(HashMap<String, Object> param){
		this.sqlMapClientTemplate.insert("Editor.insert_editorFile", param);
	}
	
	@Override
	public void update_editorFile(HashMap<String, Object> param){
		this.sqlMapClientTemplate.update("Editor.update_editorFile",param);
	}
	
	@Override
	public void delete_editorFile(HashMap<String, Object> param){
		this.sqlMapClientTemplate.delete("Editor.delete_editorFile",param);
	}
	
	@Override
	public List<HashMap<String, Object>> select_editorFile(HashMap<String, Object> param){
		return (List<HashMap<String,Object>>)this.sqlMapClientTemplate.queryForList("Editor.select_editorFile",param);
	}
}
